print('1000以内的回文素数:')
for i in range(11,1000):
    for j in range(2,i):
        if i%j==0:
            break
    else:
        i= str(i)
        if i ==i[::-1]:
            print(i,end='\t')
            # xzxz